package org.wxl.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 王学良
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("categories")
public class categoriesEntity {
    /**
     *
     * CREATE TABLE `categories` (
     *   `uuid` CHAR(36) NOT NULL COMMENT '分类ID',
     *   `name` VARCHAR(255) NOT NULL COMMENT '分类名称',
     *   `parent_id` CHAR(36) DEFAULT NULL COMMENT '父分类ID',
     *   PRIMARY KEY (`uuid`)
     * ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='商品分类表';
     */
    @Schema(description = "分类ID")
    @TableId
    private String uuid;

    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "父分类ID")
    private String parentId;

}
